﻿using MediatR;
using Micro.AspNetCore;

namespace Module.Test.Api
{
    [Area("Test")]
    public class ModuleController: CustomControllerBase
    {
        public ModuleController() { }

        /// <summary>
        /// 将领域通知处理程序注入Controller
        /// </summary>
        protected readonly DomainNotificationHandler _notifications;
        public ModuleController(INotificationHandler<DomainNotification> notifications)
        {
            _notifications = (DomainNotificationHandler)notifications;
        }
    }
}